# coding: utf8
"""
:author: Tony 2015/7/29
"""
__author__ = 'Tony'


from umeng_tool.analyse.utils import WeightDataSet

CHANNEL_WEIGHT = {
	'a360': 637,
	'anzhi': 270,
	'jifeng': 1,
	'yingyonghui': 25,
	'mumayi': 13,
	'yingyongbao': 3,
	'wangyi': 3,
	'a91': 17,
	'lianxiang': 20,
	'yidong': 1,
	'taobao': 93,
	'xiaomi': 5563,
	'baidu': 667,
	'wandoujia': 1218,
	'tecent_guangdiantong': 4480,
	'wisezone': 248,
	'youdao': 69,
	'wandoujia1': 138,
	'motu': 1
}


class DataSet(WeightDataSet):
	def init_nodes(self):
		for channel in CHANNEL_WEIGHT:
			index = channel
			data = channel
			weight = CHANNEL_WEIGHT[index]
			self.add_node(index, data, weight)


dataset = DataSet()